﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MovieRental.Entities;
using MovieRental.SqlRepositoryLibrary.Converters;

namespace MovieRental.SqlRepositoryLibrary
{
    public class SqlDiscountRepository : SqlRepository<DiscountInfo, Guid, DiscountConverter>
    {
        public SqlDiscountRepository(string connectionString)
            : base(connectionString)
        {

        }

        protected override bool Contains(DiscountInfo entity)
        {
            return Contains(entity.Id);
        }

        public override void Delete(DiscountInfo entity)
        {
            Delete(entity.Id);
        }
    }
}
